package com.userrequestdtos;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class CreateCategoryDTO implements KvmSerializable {

	//declaring variables
	
	public String v_useremail;
	public String v_categoryname;
	
	// default constructor
	public CreateCategoryDTO()
	{
		// complusory
	}
    public CreateCategoryDTO(String uname,String category)
    {
    	v_useremail=uname;
    	v_categoryname=category;
    }
	@Override
	public Object getProperty(int index) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			
			return v_useremail;
        case 1:
			
			return v_categoryname;
		default:
			break;
		}
		return null;
	}

	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 2;
	}

	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			   info.type=PropertyInfo.STRING_CLASS;
			   info.name="v_useremail";
			break;
		case 1:
			   info.type=PropertyInfo.STRING_CLASS;
			   info.name="v_categoryname";
			break;

		default:
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			v_useremail=value.toString();
			break;
		case 1:
			v_categoryname=value.toString();

		default:
			break;
		}
	}

	
}
